# Example: A simple Python script to calculate the factorial of a number
def factorial(n):
    if n == 0 or n == 1:
        return 1
    else:
        return n * factorial(n - 1)

# Input from the user
number = int(input("Enter a number: "))

# Calculate and display the factorial
result = factorial(number)
print(f"The factorial of {number} is {result}")